#include "header.hpp"
using namespace std;

int main()
{
    cout << "Select a program to execute: ";
    int e;
    while(true){
        cin >> e;
        if(!cin.good()){
            cin.clear();
            cin.ignore(numeric_limits<streamsize>::max(), '\n');
            cout << "Invalid input, try again" << endl;
            continue;
        }
        break;
    }

    switch(e){
        case 1:
            test1();
            break;
        case 2:
            test2();
            break;
        case 3:
            test3();
            break;
        case 4:
            test4();
            break;
        case 5:
            test5();
            break;
        case 6:
            test6();
            break;
        case 7:
            test7();
            break;
        case 8:
            test8();
            break;
        case 9:
            test9();
            break;
        case 10:
            test10();
            break;
        case 11:
            test11();
            break;
        case 12:
            test12();
            break;
        case 13:
            test13();
            break;
        case 14:
            test14();
            break;
        case 15:
            test15();
            break;
        case 16:
            test16();
            break;
        case 17:
            test17();
            break;
        case 18:
            test18();
            break;
        case 19:
            test19();
            break;
        case 20:
            test20();
            break;
        case 21:
            test21();
            break;
        case 22:
            test22();
            break;
        case 23:
            test23();
            break;
//        case 24:
//            test24();
//            break;
//        case 25:
//            test25();
//            break;
        default:
            cout << "Invalid number, program over" << endl;
    }

    system("pause");
    return 0;
}
